/** 
 * @(#)DVMRPRoutingEntry.java
 */

/**
 * @author Robert Denda&Didier Gutacker
 * @version 1.1
 * @see RoutingEntry
 * @see DVMRPRoutingTable 
 *
 * original author Robert Denda, changes made by Didier Gutacker
 */

import java.util.Vector;

public class DVMRPRoutingEntry extends RoutingEntry {

  DVMRPRoutingTable table;

  public boolean pruned = false;
  public int pruningTimer = 0;

  debug DEBUG;

  public DVMRPRoutingEntry( DVMRPRoutingTable table, int destinationID, int metric, Link l, int infinity ) {
    super( destinationID, metric, l, infinity );
    children = new Vector();
    this.table = table;
    DEBUG = new debug();
  } // DVMRPRoutingEntry.DVMRPRoutingEntry
 
  public final boolean update( int destinationID, int metric, Link l, int infinity ) {
    Link oldLink = (Link) table.lookUp( destinationID ).l;
    boolean newRouteAccepted = super.update( destinationID, metric, l, infinity );
    return newRouteAccepted;
  } // DVMRPRoutingEntry.update

} // DVMRPRoutingEntry
